package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.study.mybatisplus.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuanZhi
 * @since 2020-05-18
 */
@TableName("oauth_code")
@ApiModel(value="Code对象", description="")
public class Code extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "授权码(未加密)")
    private String code;

    @ApiModelProperty(value = "AuthorizationRequestHolder.java对象序列化后的二进制数据")
    private byte[] authentication;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public byte[] getAuthentication() {
        return authentication;
    }

    public void setAuthentication(byte[] authentication) {
        this.authentication = authentication;
    }

    @Override
    public String toString() {
        return "Code{" +
            "code=" + code +
            ", authentication=" + authentication +
        "}";
    }
}
